// MainDoc.h : interface of the CMainDoc class
//


#pragma once


class CMainDoc : public CDocument
{
public:
	virtual ~CMainDoc();

	virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
	virtual void OnCloseDocument();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	void SetName(const String& name);
	IDocument* GetDocument() const;

protected:
	CMainDoc();
	DECLARE_DYNCREATE(CMainDoc)
	DECLARE_MESSAGE_MAP()

private:
	String m_name;
};


